<template>
  <div class="zhuce">
    <div class="top">面经注册</div>

    <!-- 大盒子 -->
    <div class="zhong">
      <!-- 账号 -->
      <div class="name">
        <!-- 左侧用户名 -->
        <div class="name1">用户名</div>
        <div class="right">
          <!-- 输入框 -->
          <input class="txt" type="text" placeholder="用户名" />
        </div>
      </div>
      <!-- 密码 -->
      <div class="pass">
        <!-- 左侧用户名 -->
        <div class="pass1">密码</div>
        <div class="right">
          <!-- 输入框 -->
          <input class="txt" type="password" placeholder="密码" />
        </div>
        <!-- <input class="txt" type="password" /> -->
      </div>
    </div>
    <!-- 注册按钮 -->
    <div class="di">
      <div class="button" @click="zc">注册</div>
    </div>
    <!-- 登录 -->
    <div class="denglu">
      <div class="denglu1" @click="fn">有账号，去登录</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HmZhuce",
  data() {
    return {};
  },
  methods: {
    zc() {
      /* 发请求，注册 */
    },

    fn() {
      // 跳转路由
      this.$router.push("/denglu");
    },
  },
};
</script>

<style scoped lang="less">
.zhuce {
  background-color: pink;
  height: 100%;
  width: 100%;

  .top {
    background-color: orange;
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    // text-align: center;
    //居中
    justify-content: center;
    margin-bottom: 40px;
  }
  .zhong {
    // height: 200px;
    padding-left: 5px;
    margin-bottom: 30px;
    .name {
      width: 99%;
      height: 60px;
      display: flex;
      margin-bottom: 30px;
      //底部边框
      border-bottom: 1px solid #999;
      .name1 {
        width: 100px;
        height: 50px;
        line-height: 22px;

        // text-align: center;
        // line-height: 50px;
      }

      .right {
        flex: 1;
        background-color: #8df;
        width: 100%;
        height: 100%;
        .txt {
          width: 97%;
          height: 80%;
        }
      }
    }
    .pass {
      width: 99%;
      height: 50px;
      display: flex;

      border-bottom: 1px solid #999;

      .pass1 {
        width: 100px;
        height: 50px;
        line-height: 22px;

        // text-align: center;
        // line-height: 50px;
      }

      .right {
        flex: 1;
        background-color: #8df;
        width: 100%;
        height: 100%;
        .txt {
          width: 97%;
          height: 80%;
        }
      }
    }
  }
  .di {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;

    .button {
      background-color: #5adb5a;
      width: 90%;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
  .denglu {
    // width: 100%;
    padding-right: 40px;
    .denglu1 {
      //   width: 100%;
      /* 局右侧布局 */
      display: flex;
      justify-content: flex-end;
      color: rgb(101, 171, 199);
    }
  }
}
</style>
